require "Common/define"
require "Logic/Config"
require "Common/functions"

RedDotsRealManHandler ={};
local this = RedDotsRealManHandler;

function RedDotsRealManHandler.init()
    CloseEvent(Config.EventType.Fresh_RealManRed,this.update);
    ListenEvent(Config.EventType.Fresh_RealManRed,this.update);

    return this;
end

-- 深渊试炼
function RedDotsRealManHandler.getFlag()
    if logicMgr.RealManWarManager.getRealManOpenStatus() then
        return Config.RedDotsFlagState.Needful;
    end
    return Config.RedDotsFlagState.None;
end


function RedDotsRealManHandler.update()
    RedDotsManager.addBroadcast(Config.RedDotsType.RealMan);
end